
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type RoleRequest struct {

	Name string `json:"name" form:"name"`

	Remark string `json:"remark" form:"remark"`

	Status string `json:"status" form:"status"`

	Value string `json:"value" form:"value"`

}

func (r *RoleRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *RoleRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"name": "required",

		"remark": "required",

		"status": "required",

		"value": "required",

	}
}

func (r *RoleRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *RoleRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *RoleRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
